package com.yly.bean;

import org.springframework.context.annotation.Bean;

public class UserConfiguration {
    @Bean
    public User getUser(){
        User user = new User();
        user.setName("自动加载");
        user.setAge(1);
        return user;
    };
}
